package com.example.bwic_svc.service;

import com.example.bwic_svc.model.Bid;
import java.util.HashMap;
import java.util.Map;

public class CurrentBidService {
    private static Map<Integer, Double> currentBids = new HashMap<>();

    public Double getCurrentBid(Integer itemId) {
        return currentBids.get(itemId);
    }

    public void updateCurrentBid(Integer itemId, Double newBid) {
        currentBids.put(itemId, newBid);
    }
}